<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>

<body>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>展示</legend>
    </fieldset>

    <div class="layui-form">


        <div class="demoTable">
            标题：
            <div class="layui-inline">
                <input class="layui-input" id="name" autocomplete="off">
            </div>
            状态:
            <div class="layui-inline">
                <input class="layui-input" id="saveTime" autocomplete="off">
            </div>
            <button class="layui-btn" data-type="reload">搜索</button>
        </div>

        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>名称</th>
                    <th>修改时间</th>
                    <th>简介</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>

                {foreach $arr as $k=>$v}
                <tr>
                    <td>{$v['id']}</td>
                    <td>{$v['name']}</td>
                    <td>{$v['saveTime']}</td>
                    <td>{$v['descs']}</td>
                    <td>
                        <a href="dels?id={$v['id']}">删除</a>|
                        <a href="updateHtml?id={$v['id']}">修改</a>
                    </td>
                </tr>
                {/foreach}

                <tr>
                    <td>
                        <a href="shows?page={$page-1}">上一页</a>
                        <a href="shows?page={$page+1}">下一页</a>
                    </td>

                </tr>
            </tbody>
        </table>
    </div>

    <script src="__STATIC__/layui/layui.js" charset="utf-8"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script>

    </script>

</body>

</html>
